<%@ taglib prefix="fm" uri="http://www.springframework.org/tags/form" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>

<div class="right">
    <div class="location">
        <strong>你现在所在的位置是:</strong>
        <span>供应商管理页面 >> 供应商添加页面</span>
    </div>
    <div class="providerAdd">
<%--        <fm:form method="post" modelAttribute="supplier" id="providerForm" name="providerForm" >--%>
<%--            供应商编码：<fm:input path="supCode"/><br>--%>
<%--            <fm:errors path="supCode"/>--%>
<%--            供应商名称：<fm:input path="supName"/><br>--%>
<%--            <fm:errors path="supName"/>--%>
<%--            联系人：<fm:input path="supContact"/><br>--%>
<%--            <fm:errors path="supContact"/>--%>
<%--            联系电话：<fm:input path="supPhone"/><br>--%>
<%--            <fm:errors path="supPhone"/>--%>
<%--            联系地址：<fm:input path="supAddress"/><br>--%>
<%--            传真：<fm:input path="supFax"/><br>--%>
<%--            描述：<fm:input path="supDesc"/><br>--%>
<%--            <div class="providerAddBtn">--%>
<%--                           <input type="submit" name="add" id="add" value="保存">--%>
<%--                            <input type="button" id="back" name="back" value="返回" >--%>
<%--            </div>--%>
<%--        </fm:form>--%>
    <form id="providerForm" name="providerForm" method="post" enctype="multipart/form-data"  action="${pageContext.request.contextPath}/supplier/add">
    <%--			    <input type="hidden" value="${pageContext.request.contextPath}" id="path">--%>
    <input type="hidden" name="method" value="add">
    <!--div的class 为error是验证错误，ok是验证成功-->
    <div class="">
        <label for="proCode">供应商编码：</label>
        <input name="supCode" id="proCode" value=""/>
        <!-- 放置提示信息 -->
        <font color="red"></font>
    </div>
    <div>
        <label for="supName">供应商名称：</label>
        <input type="text" name="supName" id="supName" value=""/>
        <font color="red"></font>
    </div>
    <div>
        <label for="supContact">联系人：</label>
        <input type="text"  name="supContact" id="supContact" value=""/>
        <font color="red"></font>
    </div>
    <div>
        <label for="supPhone">联系电话：</label>
        <input type="text"  name="supPhone" id="supPhone" value=""/>
        <font color="red"></font>
    </div>
    <div>
        <label for="supAddress">联系地址：</label>
        <input type="text"   name="supAddress" id="supAddress" value=""/>
    </div>
    <div>
        <label for="supFax">传真：</label>
        <input type="text"  name="supFax" id="supFax" value=""/>
    </div>
    <div>
        <label for="supDesc">描述：</label>
        <input type="text"   name="supDesc" id="supDesc" value=""/>
    </div>
        <div>
            <input type="hidden" id="errorInfo1" value="${uploadFileError1}">
            <label for="companyLicPicPath">企业营业执照：</label>
            <input type="file"   name="pics" id="companyLicPicPath" value=""/>
            <font color="red"></font>
        </div>
        <div>
            <input type="hidden" id="errorInfo2" value="${uploadFileError2}">
            <label for="orgCodePicPath">组织机构代码证照片：</label>
            <input type="file" name="pics" id="orgCodePicPath" value=""/>
            <font color="red"></font>
        </div>
    <div class="providerAddBtn">
        <input type="submit" name="add" id="add" value="保存">
        <input type="button" id="back" name="back" value="返回" >
    </div>
</form>
</div>
</div>
</section>
<%@include file="/WEB-INF/jsp/common/foot.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/supplier/add.js"></script>
